import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  mode: 'history',
  linkActiveClass: 'sidebar-active',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: () => import('../components/Home.vue')
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import('../views/login/Login.vue')
    },
    {
      path: '/notebook-list',
      name: 'NotebookList',
      component: () => import('../views/notebook-list/NotebookList.vue')
    },
    {
      path: '/note',
      name: 'NoteDetail',
      component: () => import('../views/note-detail/NoteDetail.vue')
    },
    {
      path: '/tag',
      name: 'TagDetail',
      component: () => import('../views/tag-detail/TagDetail.vue')
    },
    {
      path: '/trash',
      name: 'TrashDetail',
      component: () => import('../views/trash-detail/TrashDetail.vue')
    }
  ]
})
